﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JHoelsch.DataClases.DataBase
{
    [Serializable]
    public class SaveTestObj
    {
        public Guid Id { get; set; }
        public String Name { get; set; }
        public bool HasChanges { get; set; }
        public SaveTestObj()
        {
            Id = Guid.NewGuid();
        }
        public void save(string filename)
        {
            JHoelsch.DataClases.Serialization.BinarySerializationTool.writeToFile(this, filename);
        }
        public static SaveTestObj load(string filename)
        {
            return JHoelsch.DataClases.Serialization.BinarySerializationTool.readFromFile<SaveTestObj>(filename);
        }
    }
}
